<?php
/**
 * Created by PhpStorm.
 * User: 驭风者
 * Date: 2019/11/11
 * Time: 10:49
 */
namespace app\index\model;

use think\Model;

class News extends Model
    {
    public function getAll($where,$limit,$page)
    {
        return $this->table("New") ->where($where)->paginate($limit,false,['page'=>$page]);
    }
    }
?>